<?php


namespace dsp\factory\functions;


use dsp\factory\functions\product\Iphone;
use dsp\factory\functions\product\Phone;

class AppleFactory implements FunctionFactory
{

    /**
     * @param $data
     * @return Phone
     */
    public function create(): Phone
    {
        return new Iphone();
    }
}